Replace `toLiquid` by `toArray`

This change is intended to make liquid adoption frictionless in PHP where the `toArray` method in an object is widely used to convert it into an array (even though not yet part of PHP's native `ArrayAccess` class.