Typed cerealization and de-cerialization.

Look after merging in https://github.com/KnowSheet/Bricks/pull/17

Thanks,
Dima
Rephrased.