add support for cppyy-style __dispatch__