Hello,
Here is a more minimal test (works with pdfTeX, fails with a fatal
"\endtemplate" error on the third line with "LuaTeX, Version
beta-0.80.0 (TeX Live 2015) (rev 5238)").
\halign{#\hskip0pt\cr \hskip 0pt\cr}
\halign{#\hskip0pt\cr \hskip 0pt plus 0filll\cr}
\halign{#\hskip0pt\cr \hskip 0pt plus 0fil\cr}
\bye