Improve class generation to recognize `Quantity` "subclasses" such as `Age`

For usability I'm just creating subclasses for these, without extending them. There are also profiles (like `LipidPanel`) that extend their parent "class", not sure yet how to handle those.