Fix boids example and some bugs in gloo

Related to buffer when data is not contiguous