Fix type errors caused by an update to PyNaCl.