Made split return Loc; added insertLine.
Added Loc.prevStart.
Better failure when unable to resolve mode arg.