draw/gs: make sure gs works with elts and doesn't overrun the buffer