Wrote width/height tests for ContextPool.

Made tests for ContextPool more rigorous by ensuring that contexts retrieved have the right dimensions. Also ensured that a new context is not created if one with the same type, attributes, and canvas dimensions was released earlier.