Improve performance of OreID lookup for ItemStacks

Increase the performance of `OreDictionary.getOreID(ItemStack)` by up to 4x (shown in a [quick and dirty test](http://pastebin.com/YdXTKvqp)). "Fixes" https://github.com/MinecraftForge/MinecraftForge/issues/1022