Fix gf1.
Switch internals to typed arrays. Reject untyped arrays in high-level API.

(Curve25519 still uses arrays)
Add sign.input.js test with ed25519 test vectors.
Make scalarmult test shorter.
Fix scalarmult test.
Port changes from newcurve and use typed arrays for Curve25519.