config: Don't write commas if not needed, default to `opt_algorithm` when adding pool without one set explicitly.