Eigen::Ref: change API (const_xxx_ref& ---> const_xxx_ref).

Also fix some miscellaneous errors in tests.
Fix the test suite.

100% of the tests are passing.