Julia's loop scope behavior differs from Fortran?