Rewrote persistency support in ETTemplateItemLayout class hierarchy, to integrate cleanly with CoreObject and support COCopier

Added TestTemplateItemLayoutPersistency.