Fix bugs and finish madlib.array_elem_corr_agg
Fix bugs and make zph work