Added support for serializing to Yml data structure
Factored out charset construction
Half-implemented defaultable value, updating ReflectiveEntityTreeGenerator is left