Fix Object::has_extension deprecated('xx','xx')