Add constness to TilePattern.