Makes the json converter compatible with every kinds of types.

The json type is more expressive and can handle scalar values too. These kind of operations became possible:

```php
$converter->toPg(true);
$converter->toPg(pi());
$converter->toPg(null);
$converter->toPg('foo');
```