Let functions be generated while ltyping.

A function's body may be type several times before List::codegen()
defines it. Since we have the complete information while calling
List::ltype(), define it there, too.