Makes Text add its type to the attributes array on construct