Fix serialization to handle subclasses of enums

Do not output compiler private enum subclass
Fixes #72
Release v1.0.2