Fixed bug with adding to empty collections via set(obj)