Tries to address issue #1308  Extend the fetchplan format parameter of the ODocument.toJSON()

see #1308