Replace Array with std::vector in canvas.{h,cpp}.