support for outer product and support for scalar right arguments to reshape