Switch some std::oldmap to core::hashmap

Switch some std::oldmap::HashMap to core::hashmap::linear::LinearMap.
related to #4986