CIP implementing Visitor pattern for serializing SimpleObject