Added primitive type inference for output parameters

@basvodde This is an easy one