adding restrict for trigfuns at chebfun level.