workaround for pypy missing dtype from dict support