Add a constructor property to all node types.

Fixes regressions in transformer.