Fix bug in typeinfo generation.