fix for object dtype under pypy.