Fixed issue #07918: Public part broken with array params
Dev: cherry-pick : 3d28e0e5e907f4d3cd50e2e60c5485c8792ed395
Dev: add option $bRestrictToString=false in returnGlobal
Dev: filter array to