[ENSCORESW-851]. Fixing lookup code where we did not lc correctly.

The code was assuming that object types are always said with a
leading captial letter. That's not the case when object types are
user submitted