fix or supress compiler warning

fixed many compiler warning related to generics and to unnecessary/deprecated usage of TSK_TAG_ARTIFACT/FILE.  suppressed warnings on usage of runQuery and other known 'hacks'.