Allowing using local-only variables in array indexes