Improve code style

Some of the code in Nickel is quite dated. I've used rubocop to help discover (and fix) many places where the code style is unorthodox or outdated.

This is hard to code review. All tests pass however.