Added #asum for shape == [1]

Defining #asum for shape == [1]. This was previously (erroneously) undefined.