Utilities: Correct return behaviour for array_to_string

Previously we didn't have a return value for array_to_string in the
utilities leading to issues in GPDB 4.1. Further, marginal effects
also didn't take care of the special handing required for arrays
passed in GPDB 4.1 from SQL to Python. These issues have been rectified
in this commit.