Fix chebmatrix cellfun

Closes #1016.