Add support for looking up EdmEntityType by entity name. Also fixes for issues found during testing.