Fix `any_instance` stubbing so that it works with `Delegator` subclasses.

Fixes #219.