Update ArrayList for transitional syntax.

@dvander We should probably lose CloseHandle... after all, one of the major scripting changes to 1.7 is to get people to use the `delete` keyword on Handles instead of calling CloseHandle.