Fix two bugs in compiling certain expression lists.