a/math: Fix const-correctness in m_relation_history