Various different ways of inflating them (auto or manual) - you will find that the principal use of floats is to make the dead aircraft easier to recover. You are dead right that the aircraft are top-heavy, and will almost always turn turtle unless the sea is a flat calm. That is why anyone in their right mind who flies over the sea does a helicopter underwater escape course!