Duplicating attribute did not copy the attribute options (#1265)