[#39] Fix de/serialization of feature maps