Typed cerealization and de-cerialization.

Look after merging in https://github.com/KnowSheet/Bricks/pull/17

Thanks,
Dima
Should test events be in the test/example folder?