Added various ASSERTs to list operations. Avoids crashes
Changed RemoveNote to use trackreallines2