Support embedded types in the binary record serialization
Support embedded types in the binary record serialization

This commit adds support for the EMBEDDED* types (like
EMBEDDED_LIST). The code has also been restructured a little in order to
support these types.

MyMedsAndMe/marco_polo,linearregression/marco_polo