[mlir][tosa] Fix empty profiles and extensions in #tosa.target_env (#241574)
- Make `profiles` and `extensions` optional array parameters and update
the assembly format to parse `[]` when either list is empty.
- Add a round-trip test for `--tosa-attach-target` with the default
options.
Fixes #236938