small refactor 1/2: reify dictionary passed to LinkedMap.foldlWithKey
small refactor 2/2: same for SkipListMap