Fix nested mapping properties

Properties of nested types should be within a properties object.
Merge pull request #93 from stringbean/fix-nested-mapping

Fix nested mapping properties