Revert "Fix code generation for new ScalarList type (#2816)" (#2849)
This reverts commit e537eed0f7ad7a33f698fde447770bc530c5fe32.
We decide not to introduce ScalarList as an alias for ArrayRef<Scalar>
but to use ArrayRef<Scalar> directly in
https://github.com/pytorch/pytorch/pull/53583.
The original commit is no longer needed.