Azir, Masteries Confusion... Need some clarity!

Been experimenting with Azir a lot lately, trying to add him to my pool before the season starts.
His W, "Arise!", "Summons a Sand Soldier, and replaces Azir's basic attacks".
Does this count for Masteries such as Savagery (+basic attack damage to minions, and do his soldiers melee attacks count as single target, since they can hypothetically hit infinite targets?) and Fervor or Battle? If it does apply to Fervor of Battle, does it apply one stack or two... since they are melee, but also ranged, depending on the perspective?
Furthermore, if they are in fact melee, do they benefit from life-steal mastery?
. His autos from him are regular autos if you're in range to attack on top of your soldiers which is why most get
too. Try thunderlords.
