Rates of convergence in empirical Bayes two-action and estimation problems and in extended sequence-compound estimation problems