Thermal expansion accompanying the glass-liquid transition and crystallization