Workarounds for GCC not understanding friend template classes in RectangleList.