Improved NameAndType class (now showing dependencies through interfaces),
created tests for NameAndType.#