Support customize transformer serializer from inherit class's constructor.

I want to customize transformer serializer, like this code `$this->manager->setSerializer(new ArraySerializer());' in constructor of inherit class.