debugging: making native array functions debuggable