Merge pull request #179 from exarkun/Context.check_privatekey

Fix a regression in Context.check_privatekey which caused it to always succeed.