fix ArgumentError for dot product on 1-d matrices.(fixes #191)

see #191