Pass pointer parameters by reference

Array declarations are currently still unsupported, e.g. int a[].