Update ArrayClass.php to not pass variable by reference.

For PHP 5.4 compatibility, variables cannot be passed by reference.