Fix error with matrices environments

- Fix typos
- Add test for matrices environments

This should close issue #14.

NOTE: the matrices environments came from amsmath package.
Merge pull request #15 from r-gaia-cs/matrix

Fix error with matrices environments