Indentation fixes for julia-mode

The first commit fixes #8538, ensuring we indent correctly on older Emacs versions.

The second commit fixes #8634, where we weren't indenting regions even if a region was highlighted.