Added EnumInOut tests.
Fixed CLI marshaling of in/out parameters under some cases.