Interplay between micelle formation and waterlike phase transitions.