Fix lack of initialization for AV* RETVALs
A testing TOdone
Function for AV => real_1d_array conversion