expose Selection.getLineRange

Expose `Selection.getLineRange()`. It's undocumented, and currently used by ace in the annotation mouse click handler.