Made RenderTarget use ArrayRef.