Fix infinite recursion when unpickling a mapping type instance