Reducing AP cost and giving XP bonus are NOT main/derived stats, so you can't simply use Stat and StatMag in perks.ini to modify them.
For Bonus Rate of Fire, use CalcAPCost hook (here's an example).
For Swift Learner, call "set_swiftlearner_mod(int bonus)" in a script. It's a bit tricky...