Fix #1357

The primitives need to be wrapped before being used in the array.