fixed template element copy (web2py issue 1255)