added a better way to convert array collection to simple array to always force the load of the proxy classes