add option to omit array indices, closes #46