Basic support for inner classes in templates.