EZP-22583: Made REST output indenting optional

Passes on `%kernel.debug` as an option to the JSON & XML REST output generators. If true, the produced XML/JSON will be indented. If not, it won't be.

### TODO
- [ ] Fix tests