While debugging I found that `serializedRecord[key]` was returning [] for hasMany relationships that had multiple associations.  Digging deeper it turns out that the default implementation of `serialize` for the JSONSerializer doesn't return ids for hasMany associations (which obviously makes sense because that is a firebase thing).