If the input sequences contain gaps, the code is going to fail an assertion check when trying to align such sequences (gaps get stripped away from alignments...), see #170
However the error message is not very informative in this case. It might be good to add a preliminary check on the input sequences and fail with a more informative error in such cases.