Foamed polymers based on reactive oligomers