Dynamical symmetries and observational constraints in scalar field cosmology