Fix type id generator.
Fix literals.