fix: type bug intruduced in #2492

This now tests the old form too, and fixes the bug introduced.
diff --git a/tests/test_class.cpp b/tests/test_class.cpp
index b0e3d3a..bb9d364 100644
--- a/tests/test_class.cpp
+++ b/tests/test_class.cpp
@@ -152,6 +152,10 @@
         return py::type::of(ob);
     });
 
+    m.def("get_type_classic", [](py::handle h) {
+        return h.get_type();
+    });
+
     m.def("as_type", [](py::object ob) {
         auto tp = py::type(ob);
         if (py::isinstance<py::type>(ob))