Corrects Serializer::toArray() method.
Corrects the getAllCatgories method.