Add secret key gob encoding

Secret Key encode, decode and compare was missing, so I added those functions. 
I copy-pasted public key's encode, decode, and compare functions, then changed them slightly so they operated on on secret keys.
I did the same with the test functions.