change the implementation of test code for checking the use of unbound methods

This seems like it's a waste, but 2 implementations of the same idea are used to check that each is correct.
The module_method_rebinding? method is memoized but the test_rebinding_methods? method is run each time.