Preparation for support of array of records in have_matching_attributes.