01 - Preheat oven to 400°F and line a baking sheet with parchment paper.
02 - Toss pumpkin cubes with olive oil, thyme, salt, and pepper; spread evenly on the baking sheet. Roast for 25 minutes, turning once, until tender and lightly caramelized.
03 - Lower oven temperature to 350°F.
04 - In a large bowl, combine the roasted pumpkin with orange zest, lemon zest, orange juice, lemon juice, brown sugar, pumpkin pie spice, and cinnamon; toss gently to coat.
05 - Place the pumpkin mixture into a lightly greased 9x9-inch baking dish.
06 - Mix flour, oats, brown sugar, pumpkin pie spice, and salt in a medium bowl. Add cold butter and work with fingertips or pastry cutter until coarse crumbs form. Stir in nuts if using.
07 - Sprinkle the crumble topping evenly over the pumpkin filling. Bake for 20 to 25 minutes, until golden and bubbling at the edges.
08 - Let cool for 10 minutes before serving warm, optionally with vanilla ice cream or whipped cream.