cast parent of subproperties to bool if they are not ones already

fixes #1265