Add json and expression type mappings
Simplify setAttribute()
Clean up child creation
Init constraints after all children are created