Add template comparison functions (Go 1.1 compat)