Adapted the implode functionality to be executed within the compiler;
not fully done, see todos.