Kind categorization function

This function determines, if the supplied kind is only a simple reference type
to another type, adding some bonus information like attributes or another name.
Kind categorization function
New TODO item
Fixed wrong variable name