Nullable objectid with null value stored as null.

Closes #341.