Fix defineShadowBufferHelper for buffer objects

Use GL_ELEMENT_ARRAY_BUFFER_BINDING instead of GL_ELEMENT_ARRAY_BUFFER
to inquire the current buffer object in _shadow_glGetBufferSubData.
Fix renderbuffer parameter type

Several parameters of renderbuffer type were treated as unmapped uint.