Allocate GL objects into Vecs, then slice for return

Since mozilla/rust@7d3b0bf we can't do this with primitive vectors.

I might be describing this wrong. I only barely understand what's going on. But this gets it compiling again :)