It isn't specifically stated how they changed from the first game to the second, but we're supposed to assume that they repaired themselves, embraced their new cyborg bodies and took over Hatter's Domain. Apparently, this is because of Alice's therapist making Alice's mind reboot.
Dormy is cute here, isn't he? x3 I think he's cute in both games. I kind of want him as a pet.