Fixed parameter type mismatch in addMethodCall example.

The example passes an object as the second parameter to addMethodCall. However, addMethodCall expects an array.

Fixed by wrapping the object in an array.