Fixed a bug with clearing Lists not reseting their element counter.
Modified more types to use Lists. Fixed a pair of bugs with deallocating Code Attributes.