When the wing is at the top, like a C-130 and other transports. Then the weight of the fuselage CG below the wing acts like a pendulum to give a correction force to level out the plane. (I think.)

Not being a design engineer, but I would think that dihedral is for stability purposes only. As far as top or bottom wing, I would think the design profile for the missions intended for that aircraft would have some inference on that. For example, look at the three aircraft below and think about the C-130 with a bottom wing, or the B-24 with a bottom wing:



I would guess that the viscount would have been a little faster and carry more passengers, but he length of the props, because of the bottom mounted wing, would not allow for more diameter props than what is on it.
As far as the C-130, it was designed as a multie purpose cargo aircraft which could land and takeoff from unimproved runways and to have the most effective length prop, design dictate that a high wing be installed, and I am sure that clearance from the ground for the props also had something to do with the design.
As far as the B-24, again, where the wing was mounted was a matter of "mission profile" for that aircraft.
The fuseledge has really nothing to do with stability of the aircraft, it is more a wing design and vertical stabilizer thing as far as stability is concerned.