oldmap: get rid of the legacy each_key method