Shape phase transitions and critical points