Issue 5988 - Template accepts instantiating an already-instantiated template type

http://d.puremagic.com/issues/show_bug.cgi?id=5988