Fix tabs Added missing ty_str cases when generating type descriptions Reduce code duplication and improve test