Handle case where Document booleans (visibility,isopen) are 'true' or 'false' when
parsing from string