Add resolveAmbiguity() in types.h/cc