Fix ttest 1d

fix bug introduced in t_test with scalar/single restriction in summary and `__repr__`

closes #1323