Make sure items removed from DOM remove all their events and reinstall them again when reinserted.

Closes #254.