Reflect.callMethod should accept Function only.

Modified `Reflect.callMethod` to accept `haxe.Constraints.Function` instead of `Dynamic`, to avoid common mistake of passing the method name as `String` to the function.