serialize maps with null values