Fix safe proxy warning on concrete class types