fix a bug about not checking StaticElem when producing AccessPath in getAbstractMemLoc()