chore(categories): transform children in arrays until the last generation.