Adds code to flatten autoload_namespaces array. Resolves #4