Use traits<Matrix>::Options instead of Matrix::Options.

Not all objects have an `Options` attribute (e.g. Ref), but do store this
information in `traits<...>`.  Fixes #2335.
15 files changed