fix 1D case for Mean/Sum/Max/Min
Merge branch 'master' of git://github.com/torch/nn