Implemented code generation for lists.