Use correct invocation of `include_root_in_json` in the `to_indexed_json` example

The previous example attempted to disable JSON roots but
didn't reference "self" so it only assigned a variable.

Closes #581