Fix range's getStartPosition/getEndPosition, which don't work as advertised.