Improve memory address removal for serializer representations