Adding a deal method for @chebmatrix.

Closes #1011.