Fix 'Array to string conversion' error when AUTOLOAD is an array

There may be a better option performance wise, but this was the simplest version.