Refactoring: changed all use of "type name" on the new IEntity2 interface and related helper methods to just Name (to match terminology used by Entity class).
Fixed up sloppy code in EntityHelper and cleaned it some.
Changed Entity.From(obj) to try the first cast straight to IEntity2 instead of Entity.