Fix #661 - make type checks case insensitive
Merge pull request #690 from flowplayer/bug/661

Fix #661 - make type checks case insensitive