[Fix] do not insert a trailing comma for chopped arrays

                    
|Q            |A   |
|---          |--- |
|Bug Fix?     |yes |
|New Feature? |n   |
|BC Breaks?   |n   |
|Deprecations?|n   |
|Tests Pass?  |yes |
|Fixed Tickets|#604|
|License      |MIT |
|Doc PR       |    |
                    
Hmm, only using the second condition plus `\t` also seems to work.