Improvements to array API snippet.