Convert elemMatch keys into objectid.