implement "has_same_class" check for instances (gaining some traction here...)