very minimalist PR for AnyAllowableValue Classcast (and NPE in TypeUtils)

As discussed in  comment #34, a veery minimalistic PR for fixing a classCastException for AnyAllowableValues$. This fixed the issue for me and generated usable json files for my app.