add support for array serilization