Improve compatibility with singledispatch

Discussed in https://github.com/mrocklin/multipledispatch/issues/23