Promote struct valueAxis to ValueAxis class.  Ensure that valueAxis and
related memory is initialsed and free/deleted correctly.