Fix bug which caused segfaulting when compressing sizeable things.
Various linting things.