Release arrayItemContext

arrayItemContext was cached between two closures. Hence initiated by the first, but not released by the latter.
Merge pull request #1507 from faktumsoftware/1506-release-arrayItemContext

Release cached arrayItemContext after it has been used
remove the trailing space