Use PYSON for tree_invisible attribute
Since #5220 (closed), the context of a view can be edited so it could be useful to have the tree_invisible depending on the context. In other terms, it means to convert the attribute into a PYSON statement.
The good point is that as we already use '1' or '0' which are valid PYSON statement.