Merge pull request #8 from Kakadu/master

Type hint for functors allows using Template_groups.t