A class of solvable stochastic dividend optimization problems: on the general impact of flexibility on valuation