Merge fixes from HP codebase

Handle dicts that are list-like objects (e.g. integer keys)

Handle xs:simpleTypes (including enumerated types) better.

Handle xs:elements with ref="..."

Expand namespaces when building types to ensure typenames get fully
resolved.
Bump version number to 0.0.2

Add xs:date and xs:time types.
Fix the build script.