Made blocks keep track of their full state when grabbed

This fixes a number of issues with restoring block state and undeleting blocks.

Fixes #282.
Fixes #107.
Fixes #21.