Unified wrapper for array references in C++.