Convert item attributes, refererences and collections to simple objects.

Signed-off-by: Richard Smith <rnsmith100@gmail.com>
Test fix.
Merge pull request #808 from rnsmith/simple-items

Item attributes, references and referencelists are simple objects