bugfix for setTemplate(), decorators work now, refs #97