Fix typo in matvec method in matrices module.

This is part bug fix, part test pull request.