Fix doctests and GPL headers.
Add misc_list -- special code for fast manipulation of lists relevant to modular forms.