Passing SpaceState into serialize/deserialize

Steps towards Model Types: most of their operations are clearly going to
require the SpaceState in order to work.  So this is moving in that
direction.