fix eckey.cc to handle private keys starting with 0 correctly

This PR may break the build. This new test is breaking on my machine. Please run the new test on Mac OS X and report