[ONNX] Support type promoting sym number representing scalar output (#106178)
Summary:
* Add test cases distilled from models that requires setting dynamo config `capture_scalar_outputs` and `capture_dynamic_output_shape_ops` to True. Kudos to #105962 both configs are on by default for export now.
* Improve type promotion to support fx.Node of sym number representing scalar output.
* Bug fix: `onnxfunction_dispatcher` would crash if an input was mis-aligned to be attribute when doing schema matching.
* Misc: re-enable op tests that are already passing.
* Needs https://github.com/microsoft/onnxscript/pull/931. Waiting for merge and the publishing of the new whl.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106178
Approved by: https://github.com/justinchuby, https://github.com/titaiwangms, https://github.com/thiagocrepaldi