Fix printing of tmpl_num in tmpl_prints
Split apart some integer tests
Return string 0 for &Attr[#] where no attributes exist
Add test for paircmp