I found out there were accidentally two code paths in zig ir for pointer dereference. So this should fix a few bugs. closes #1486