Fixed parsing of template type names that are just items (aka reference)

Implemented real template types editor.