ReflectionMethod: fixed #1258 by implementing proper checks for overriding methods

Old one did not work for non-public and generics.
Test for #1258: test reflection isOverride