Add length, append, reverse functions to list.rs
Update type definition extraction code
Have the module system use lists