Fixed bug in AlignmentProtoHelper::toAlignment.