[BUGIFX] Improve FILES examples

The second example for the FILES object mentions the use of
references but does not use property treatIdAsReference.

Indentation of code samples is also improved.