[BUGFIX beta] link-to, bound helper issues with arrays of primitives

/cc @kselden

Fixes #3342. Fixes #3429.
Merge pull request #3513 from machty/bound-primitives

[BUGFIX beta] link-to, bound helper issues with arrays of primitives