In a small bowl, stir the butter and flour together until blended and set aside.
In a large pot, bring the stock and wine to a simmer. Add the carrots, mushrooms, celery, bay leaf, salt, and pepper. Cook at a low boil for 15 minutes. Add the green beans to the pot and cook for 5 minutes longer, or until the vegetables are tender.
Grease a 9x13-inch baking dish, or a 3-quart shallow baking dish. With a slotted spoon, transfer the celery, carrots, green beans, and mushrooms to the baking dish, blotting each spoonful on a folded paper towel to drain excess liquid. Leave the broth in the pan. Distribute the frozen onions and frozen peas over the vegetables in the baking dish. Remove the bay leaf.
Bring the reserved broth in the pot to a boil over medium heat. Stir in the beurre manié. Simmer the sauce, whisking often, until it has thickened. If you would like a richer sauce, stir in the optional milk or cream. Taste and add more salt and pepper, if you like.
Pour the sauce over the vegetables in the baking dish. Stir gently to coat and set aside while you finish the topping.
Adjust the oven rack to the middle position and preheat the oven to 400°F.
In a large pot, cover the potatoes with cold water and add 2 teaspoons of salt. Bring to a boil over high heat. When the water boils, adjust the heat to a simmer. Simmer the potatoes for 12 to 14 minutes, or until tender when pierced with the tip of a knife. Drain the potatoes in a colander. Return the potatoes to the pot and set it over medium heat.
Stir the potatoes constantly for about 1 minute, or until the liquid in the pot evaporates and the potatoes look dry. Push them to one side of the pot and pour ½ cup of the milk into the empty space. Cook until the milk is hot, then add the butter pieces. Mash the potatoes, milk, and butter with a potato masher. Gradually add enough additional milk to achieve a creamy consistency. Beat with a whisk to lighten the potatoes and smooth them out.
Add the remaining ½ teaspoon salt and the pepper. Stir in 2 cups of the cheese, scallions, and parsley. Taste and add more salt and pepper, if you like.
Spoon the potatoes over the vegetables in the baking dish. Use a fork to make swirls in the potatoes to create peaks and valleys. Sprinkle the top with the remaining ⅓ cup grated cheese.
Bake for 30 minutes, or until the filling bubbles and the potatoes are golden. Let rest for 10 minutes and serve.
