Pass correct buffer sizes to readPixels

Take into account sizes of GL_FLOAT/GL_INT while calculating buffer sizes being passed to readPixels
Possibly. I ran into buffer sizes for GL_FLOAT and assumed the problem existed for other types as well. I just added a test case for GL_FLOAT. Although it only works on Firefox with draft extensions enabled ( and ANGLE disabled if on windows).