make Class.getMethod (and getConstructor) more strict about parameter ty...

...pes

This matches the JDK behavior.