fix array_prepend and array_append functions to accept both arguments to be type array