Added support for deserializing collections + auto create reosurce classes