Add debug checks to render state handlers to catch invalid values.
By default, request a stencil buffer upon context creation.