update null serialization to be limited to maps and up version