Update struct dereferences to cope with pointers as well.