Added object option to unflatten. Able to unflatten into objects with integers as keys.