Keys in cc.RESOURCE_TYPE should match types used in switches, otherwise it won't work with advanced compilation level
Merge pull request #816 from moadib/master

Fixed CCLoader code to make it work with advanced compilation level