array to proc and EagerAutoloadNamespace module