add NSNull support to serializer