Changes way components are tested when typed

Was checking for an exact match, but when I used the function that
wasn't what I was expecting. Nothing else used the function, so it is a
safe change.