Macros for nil to null, null to empty string, and other related conversions.