I'm not able to reproduce this with other items, but for spells this makes sense. When you swap equipped item like this the game will also automatically swap quickslots, and the tome needs to be in a quickslot for autotargeting to work, that goes for thrown weapons too.
Also, in future if you want to report a bug the best way is to DM or email me.