Bugfix: structured arrays

Closes #16