enum values support in bytecode (#33)
clean up writting data in stubs