Update for fix from reference implementation.

The 'twotimes' function had an endianness bug.  The reference
implementation has been updated, and this patch includes that fix and
updates the test vectors.