Compact syntax parsing fixes

Thanks to Cyrus Harmon.