Upgrading to 3.1.1 and removing show_hidden true solved the problem with file selection, but now I have another minor problem.
I have 3 path widgets on the form, 2 of them I hide depending on the other filed choice. Used to work fine, but now it hides the text field but not a button.