return thunks for toArray and nextObject