engine: Give vars reasonable names, remove useless `g_*list_free`s.

Also removes a couple of trailing whitespaces and fixes a minor memleak.
engine: Return bool wether netlist gen succeeded.

That should be done as this also populates an `GError` on error.
engine: Prevent potential crash.