Fix missing return statement in several lookupType methods.