add imported nodes to compiled schema
put sub type names into lists for easier composing/decomposing
clean out remains of old compiler, now unused.
always produce and export 'TypeName'/1 functions.

Otherwise we need to detect when a type has nested nodes,
and only export 'TypeName'/1 in those cases..
easier to just always generate them.
don't add annotations field when empty.
add scope and nested nodes to compiled schema.