Include public dependencies in toString.