Fix NewPrivateKey ECDSA parsing, and add test
Merge pull request #125 from FiloSottile/ecdsa_fix

Fix NewPrivateKey ECDSA parsing, and add test