Add support for explicit methods.

Used this to add support for the `docAsUpsert` method of UpdateRequest.
The tests have been extended accordingly (plus fixed some older ones).
Update to version 0.4.2.