Upload stencil by bit rather than by value.

Still not the most optimal way, probably, but this was an easy change.