Phase Transitions and Annealed Theories: Number Partitioning as a Case Study