making sure that chebfun(f) has the same domain as f, if f is a chebfun.
making sure tests pass.
Merge remote-tracking branch 'origin/development' into fix-chebfun-domain
Modify commit + coding style.
adding a test for constructor.
Merge branch 'fix-chebfun-domain' of https://github.com/chebfun/chebfun into fix-chebfun-domain
Merge remote-tracking branch 'origin/development' into fix-chebfun-domain
Merge pull request #1320 from chebfun/fix-chebfun-domain

Fix chebfun domain