Considering we can attach multiple paths to an index, we should actually check to see if a namespace is already attached when adding a path and amend this to the path array. Currently, the old array is simply overridden.
This issue is documented within the autoloader docs.
Add check for namespace index when attaching a new path to a namespace.
This now merges namespace paths with the existing paths if they exist.