fix array_decref