Static method lookup on types should 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.