Fix for 3f143870: const qualifier was missing in ag_chart_get_name() invocations