Playing with persistent data structures in objective-c