add keepArrays option to mongoObject.getFlatObject