check if unit_cell lengths are specified in to_compound