Merge pull request #28 from pyca/other-int-fixes

Add some missing test coverage for handling values of type `long` and make them pass by loosening the explicit type checks in various APIs.