Fix #1728 so that inherited methods invoked via ReflectionMethod are

called with the correct class