Rework the mechanisms for defining data modules so that they follow the same pattern as other elements.

This code also ensures data modules must be uniquely named.
Use single quotes where possible
Whitespace
Make sure domgen "reals" translate into xsd floats