Fixed mock failures related to output parameters
Added primitive type inference for output parameters
long experiment.