Fix symfony/yaml requirement

Updated to minimum of 2.2 but not 3 and higher. Fixes #793.