fix handling of arrays in embedded mode
Merge pull request #89 from subvertallchris/master

fix handling of arrays in embedded mode