Fix several zero vs null issues

This fixes:
- "last" summary when values are zero;
- genuine zero values disappearing if null_as=null.