mid refactor
Merge branch 'tree' of https://github.com/davidmoten/xsd-forms into tree