Handle nameReference as well as type-based element defs
Merge pull request #1 from jmandel/handle-nameReference

Handle nameReference as well as type-based element defs