Improve indentation and folding rules, add test⇥ snippet and “open package” command

See commits for full details of proposed changes/improvements.