Added test revealing bug when operation calls return a value type
Fix for bug when operation calls return value types