Fixing bugs in CECKey::SetSecretBytes() and CECKey::Sign()

Private key generation and ECDSA signature computing didn't work in Release configuration since underlying functions inside assertions had been eliminated.