Fix: a typing bug in resolving overloaded or specialized routines.