DOC: clarify matrix.ravel docstring and add tests

I had a difficult time tracking down exactly which code was being called by `m.ravel()` but I think this is right.