Bugfix on template reference arguments.