Fixed static method lookup to be case-insensitive

Fixes #111, I guess.

May be still problematic. I also added a test for that case, but I'm not quite sure whether it's in the right place.