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