Fix #3053: rename toString in ReflectionFunction / ReflectionMethod

This is a continuation of #3312 with tests.