Not sure I want to "fix" this. Rampant Arsenal names its recipes differently from the items they produce, which is different from the standards Factorio uses.
Regular piercing rounds are named "piercing-rounds-ammo" in game and so is also the recipe that produces those named.
"incediary-magazine-ammo-rampant-arsenal" is produced by a recipe named "incediary-magazine-recipe-rampant-arsenal".
The API give you the name of the item the slots are filtered to, and the API gives you all the recipes in a table where you can find the recipe by name. This is quick and efficient if you know the name of the recipe that produces the item you want to make. But since RA doesn't follow the standard of naming the recipes the same as the item it's not really possible to find the recipes. RA is hiding the recipes for no reason, the simplest fix is to patch RA so it behaves "properly".
To get around this I would have to search through all the recipes and make a table that maps items to recipes for mods that name their recipes incorrectly. But other mods, like "Attila's QuickBar Mod", just crashes when you craft anything from RA so even if I did all the work of trying to find recipes that have been 'hidden' under random names then other mods will still not operate correctly with RA.