fix templates build, fixes #240
make has.add() test not crash on node, fixes #241