Support arrays and enumerations in FromObject