Lentil Pie with Squash and Potato Topping