Fixed a bug where the shape array is modified when checking broadcasting compatibility when it is supposed to be readonly.
Fixed a bug where the shape array is modified when checking broadcasting compatibility when it is supposed to be readonly.

morriswmz/jasmal,morriswmz/jasmal