Fix legpts for n = 1 and n = 2 on general domains [a,b].
Merge pull request #1108 from chebfun/fix-legpts-verysmalln

Fix legpts for n = 1 and n = 2 on general domains [a,b].