Fix support for multiple objects

No object but the last one in the file was added. They are now. This will also reset the group to default (`None`) each time a new object begins.