Altered the GetStackedItems function to properly get the stack based on groupID not typeID.
modified AttributeMap::ResetAttribute to be more efficient.