My Shorter Oxford indicates that the word was used (early 19th century) to describe a black person, especially one recently arrived from Guinea or West Africa. By the late 19th century, it was used derogatively (in the US) to describe an immigrant of Italian or Spanish origin. It doesn't suggest any link between the two terms.