Add simple checks for Map's foreach and map.