incidence visibility is cached in mIncidenceVisibility hash array. But this array is not updated when a notebook visibility is changed when calling updateNotebook().
It also adds a method to inquire the visibility of a notebook. Previously, one can only inquire the visibility of an incidence, while the visibility flag is set for a notebook.