hmm - at least for my use case, I needed it to map over all the keys. it wouldn't be too hard to modify to allow the option of only modifying leaf nodes...