BUG: Test and fix for subclasses of CacheableOffset (GH4609)