bug fixes in C code generation and Set to LinkedList transformation