GPDB compatibility for 4.0 and 4.1

Remove quotes and deal with NULL in cross_validation