I'm an old user of XeTeX. I switched to LuaTex to be able to use ocgx. However the outline doesn't work for Polish and I was unable to find anything useful on this subject with Google.
Try by adding an option for hyperref like
\usepackage[pdfencoding=unicode]{hyperref}
Best,
Akira
