You can switch jobs inside the company. My salary roughly doubled over 3 years when I started work in the 90s; but my job title changed several times, too.
Depends on the company. A lot of companies will have must-get-CEO-involved-for-exceptions style caps on raises under any situation, so moving to a different part of the company still puts you with a max possible raise. The new team will also know everything about your previous conditions, making negotiation harder.