made the states returned never be nil. made the local storage never try to set something as null. added support for backbone collections.