Type hint for functors allows using Template_groups.t 

in `connected_page` function. Related to #7