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.
Merge pull request #1045 from andersonamuller/patch-1

Generates the right method name for actor classes.