Fix chebmatrix ctor

Closes #806.

(See commit comments for details.)