Fix primitive type arguments not correctly being detected.