serialize non-string configuration values

see notes at c5a2b8f