Defaults should sill be generated for null values

Fixes #124