[geometry] fixed bug of MSVC. It apparently cannot pass function pointers of template functions by reference (with non-template, it could...)