Basic support for template hierarchies and field types