Macro expansion fails before it would generate code to call any of these.
Complements variant serialize_with and closes #1013.