refactor: move list.flatten to functional.flatten.

* lib/std/list.lua (flatten): Deprecate.
* lib/std/functional.lua (flatten): Export from here.
* specs/list_spec.yaml, specs/functional_spec.yaml: Adjust.
* NEWS: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>