added possibility to restore content references from content types
array, added possibility to reset buffer after serialization