use Type instance in generated class
(temp commit) part way through converting to generated classes