On the relationship between discounting and complicated behavior in dynamic optimization models