Preheat oven to 400 degrees. In a pot of boiling salted water cook the orzo until al dente and drain. Transfer to a large bowl. In a large skillet cook the onion and fennel in the butter over moderately low heat, covered, for 5 minutes. Add the tomatoes, cream mixture, rosemary and salt and pepper and simmer the mixture for 5 minutes. Add the vegetables to the bowl containing the orzo and stir in the sun-dried tomatoes, olives, all but 1/4 cup of the mozzarella cheese, basil and salt and pepper to taste. Transfer the mixture to a buttered 1-quart baking dish and sprinkle with the remaining Mozzarella and Parmesan. Bake for 30 minutes, or until golden brown.