Thermal transitions of synthetic and biological polymers in bulk and in solution