Fixes #1416 -- replaced assertions with error checking in EC key from numbers.

Includes tests.
Do these checks in pure python eagerly.

We get errors in different places, depending on py2k vs. py3k if we don't.
Merge pull request #1418 from alex/fix-ec-complains

Fixes #1416 -- replaced assertions with error checking in EC key from numbers.