Fixing a bug in onefun and another bug in restrict@unbndfun. The former one was probably introduced when we switched to the use of the 'data' structure for passing singuarlity info and the latter was a mistake I made when trying to resolve a bug reported by AT. This commit will largely fix the bug reported by DG, filed as #1026.
A test has been added in test_restrict@chebfun.
Merge branch 'fix-restrict' into development