assign types to string, color and function terms. fix verbose term construction