Forbid instanciating templates of foreign users

Closes #173
Includes testcase