Fixed code generation for enum pointers as parameters.

Fixes issue #217.