Fix type checking implementation.

Turns out I was using the _.find() function wrong which resulted
in a bad implementation and test.