BUG: Fixes SystemError in dtype(user_defined_type).name

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