Implement field access and name mangling

I only just realized that fields need to be handled differently
depending on whether they're used as lvalues or rvalues. I'll handle
that when we can actually assign things to them
The "newNoMem" is wrong, use getCurrentMem instead. I think our lecturers even said so when presenting the slides. Array access worked only when using currentMem