Fixes method name when generating actor class.

It seems there is a unexpected behavior in the `\ReflectionMethod` contructor when used with classes with a aliased method.