Added test for serialization of case classes with arrays