Check signature nonces for validity

The documentation implies that this check is happening, so make it so.
Without this check, passing an invalid nonce will trigger an internal assertion.

I ran into this when I was unit-testing my C++ wrapper - the library threw an assertion instead of returning false as my test was expecting.