Fix #115

Treat references to arrays within structures slightly differently in get
and set hooks to avoid spurious extra pointer dereference.