Simplify signatures: Type is an unsigned short.

... so it is crazy to pass around "const Type&". Ditto Handle.
Fix failing unit test

Well, not fix, but at least, its not wildly crashing any more.
Add utility function

Handy for detecting bad link types
Merge pull request #274 from linas/wtf

Attempt to fix the dim embed test case failure
remove junk file