Implement `respondsTo` in `Object`, `StaticObject` and child classes.
Update files for pr #807 to match current quality checks.