Flatten positions array.

Closes #133.