Add missing visibility() accessor to Shape.