Made change to allow heterogeneous maps to use keys other than strings as this is supported by the YAML spec.