Add const qualifier to operator()

In principle, the var returned should also be const; it's a reference so it's
capable of modifying the array.  The array is pointed to though, so C++ lets it
through.  It may be that this is just wrong from a libvar design point of view
though.