Better use of CoffeeScript destructuring
Renaming variable
Mildly improving the performance characteristics of `remove-duplicates`
Adding some missing `return` statements

Not essential, but it helps us from stepping on landmines.