Convert a bunch of nsarrays and nsdictionarys into correct objects