Replace on-the-fly creation of ExecFlagTypes vector

closes #2795