Bug in prepareSave - attrRefs and attrRefArrays fixed