Fix warnings: add parameters to raw types.

Other than Jython source code and ast-related classes, resolve warnings that complain about raw types without parameters. Only fix warnings that don't cause issues elsewhere, so many warnings still exist (but shouldn't be a big issue).