fix min/max scalar tests, wrong usage of vT instead of T
allow reshape to be passed '_()' as a placeholder meaning that the size on a particular dimension needs to be deduced. Fix #386