fix regression on Java 7 where MethodSelector sometimes chose wrong

it was because apparently Oracle did something that made
getMethods sometimes return methods in a different order.
our code should have been robust about that, but it wasn't.
now it is.