Allow all single-element tensors as value for ConstantOfShape (#26227)
Updated enforcement conditions to allow any dimensional tensor with a
single element according to the ONNX spec.
Fix https://github.com/microsoft/onnxruntime/issues/26218 Fix
https://github.com/microsoft/onnxruntime/issues/26265
---------
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>