Fix Category::all to return a flattened array of all categories