Improve logic for default tab choice
Fix bug in display of default occurrences on C_OBJECTs with no local occurrences constraint