Serialization with Marshal

A stab at implementing the ability to serialize with `Marshal`.