Make DialogHelper::ask() accept anon function for dynamic option lists.