Preserve fast-math flags after reassociation and commutation. Update test cases