Added support for deserializing arrays