fixing readAttribute to deal with child arrays
support cloning a record into a childAttribute