Fix issues with deserializing null Integers and Booleans.