Fix detection of built-in numeric types for BsonSeriailizer.

This fixes serialization of Nullable!T.
Deprecate the simple password hash functions. Fixes #794.
Add unit test for issue #793.