Simplify oddly redundant StencilAttrib implementation.
Also add RenderState::compare_mask().