Add serialization test for features of different types