The ALMA Lupus protoplanetary disk survey: evidence for compact gas disks and molecular rings from CN