also materialize a record when the item doesn't exist
rewrite _writeAttribute to create missing structures in the main records hash