Adds correct length-accounting code to LinkedLists's Append and Prepend.

Maybe I really should revert to making length getters O(n)...