Support conditional serialization following the ShouldSerialize* idiom

Note I don't know enough about the config system to decide whether this needs to be turn-off-and-onable in some way