move Loop Element from Tpex to Template namespace