escape type names since they could be keywords