Fix autoloading may not ensureLoaded objects in array.