Remove reference types from map.h to simplify template matching.
Randomize initial condition and check for singularity in cgs().