FIX: Gallery

Updates to the gallery. I can't run all of the examples currently (!), so I can't include all of them.
These fixes were necessary to get 1D arrays that showed up as (N,1) to work -- otherwise I was getting segfaults (or with the addition of a new `gl.check_error`, an INVALID_VALUE)