Port libSerialization to OpenMaya + various bug fixes