Swearing an Oath to the Queen is effectively swearing an Oath to the British Constitution. The Queen functions as a living symbol of the Constitution. The oath is sworn to a non-political monarch and LAWFUL heirs and successors as opposed to the government of the day. Which also means that if a King were removed by parliament and replaced, Like King James II & VII was, then the oath transfers to the new King, and the deposed King has no claim on their loyalty.
(Unlike, for example, the Oath sworn by Heer officers to Adolf Hitler, a personal oath to a politician, which had disastorous real world consequences.)
Also, the test of the Oath sworn by the Army, Royal Marines, and Royal Air Force, is set by Act of Parliament and can be changed by them at any time.
http://en.wikipedia.org/wiki/Oath_of_Allegiance_(United_Kingdom)
From that initial Spiritual loyalty to which they subjugated their fortunes, honor, and lives, their progeny have fallen through malfeasance, irretrievably beyond redemption, IMHO.