Fix single-trip check in sequential loop generation (Fixes #87 on gitlab) Closes #87 See merge request !137