Loop over all vars that should be treated the same way

Only override default values when the new value has been set.  Treat many properties the same way to reduce code duplication