Fixing bugs in sum@unbndfun and isdecay@chebtech for handling array-valued functions.

A few tests are added.
Merge remote-tracking branch 'upstream/development' into fix-unbndfun-sum
A few minor fixes which are missed from the previous push. An additional test is added.
Merge branch 'development' into fix-unbndfun-sum