Swc-1143: check format up front, and check alias duplicates.