Add support for null values for type specified record parameters.

Currently only verified for mongodb.