Fixed some issues with package/session/whole-line-or-region.