Allow serializing arrays as well