Categorize and alphabetize Sequence methods in .d.ts. Fix a few issues with naming and typing