Skip duplicate hosnum test as hosnum uniqueness has been reverted.
Protect against empty strings that should be NULL in the db.
Handle unknown gender correctly.
Basic type history support for API.