MemoryCounter: Only instrument reachable insts
MemoryCounter: Use isa<> cast template

See: http://llvm.org/docs/ProgrammersManual.html#the-isa-cast-and-dyn-cast-templates