#3080 introduced a reflection-based implementation to assert that a `Class` instance is sealed. We should replace such an implementation with the built-in `Class::isSealed`.