Fix messed up jquery, caused by a botched intellij refactoring
Correctly handle array properties when template contains wrapper markup around iterated value