added selfRefs to collection resources and pushed the array of elements
down into an "elements" property.