Type name generation should respect namespace