xgmath: const correctness