Implement `respondsTo` in `Object`, `StaticObject` and child classes.