Made the Collection and Resource base class extend a common base.