generateGlue: fix a problem with deserializing enum
parameters fixes #13