fix for problematic sti subclasses

fixes https://www.honeybadger.io/inspector/p/33720/4266446
see code comments