Port autoOutdent fixes for R modes