Phase transformations in metastable liquids combined with polymerization