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
Add check that optionsAfterRender binding was provided a function before attempting to use it.
Merge pull request #1556 from xdumaine/OptionsAfterRender-Not-A-Function

Add check that optionsAfterRender binding was provided a function