fixed bug in inspect_array_reference recursion