Upgrade dependencies

I've followed the instructions in #1155 and upgraded the dependencies. There weren't many changes, and all the tests pass. It's good IMO to keep up with new versions as we can to avoid having to upgrade everything at once.