Add support for serializing all model and class fields

Addresses issue #6 .
this can be simplified to just $hasSerializedNames since it checks for serializeAllNames too :+1: