Fix for obscure edge case where the alternating presence/absence of a specific method in an inheritance chain would cause the overload package to be wrapped in the wrong order.