patch orm loader to better support arrays of adapters