Types consistency assertion fix for nullable types.