Support for iLast parameter in loops; it's set to true for the last iteration, false otherwise.
Fix a few errors.