Php serializer was not serializing arrays by default. 

 Fixes #6137