fix(autoload): Correct trait detection (refs #4754)
Merge pull request #1158 from Eric-Brison/3.3-I4754

fix(autoload): Correct trait detection (closes #4754)