Optimized getEmcValue and hasEmcValue
Merge pull request #640 from Dynious/calculationOptimizations

Optimized getEmcValue and hasEmcValue
Prelim work on getting the bag inventories working