Fix unable to set tosca function on complex type on input operation