BUG: Fixes SystemError when printing name of dtype with user-defined type object

Adds an additional check that the "numpy." prefix exists in the object name before
taking measures to subtract it from the string.