Fix bad doc links on Matrix classes.

Fixes #1976