Polynomial extensions of symmetric and reversible rings