Added #asum for shape == [1]
Merge pull request #296 from andrewcsmith/issue-289-asum-undefined

Added #asum for shape == [1]