Allow for handling of single-element resources.

Previously, the code assumed that all resource links were for
collections of data. That will not always be the case.