Added support for glPrimitiveRestartIndex as a StateAttribute.

Serialization code is included, but not compiled because the SO version
needs to be updated at merge time.