Move ArrayLoader to common library.