Add map_contains function.