Baked fennel and tomato casserole