Compiler plugin: added handling of MEM_REF tree offset.

MEM_REF trees have both base and offset subtrees.
Only the base expression was used, thus read/write
were not inserted for the right locations in the
case where the offset was not 0.