#4303 Fix NewCoins() underlying function for duplicate coins detection.