bugfix: structured arrays

Closes #16