At first, so as to build my armature, I had a single bone.
All other bones stem from exclusions from this bone, or from exclusions of exclusions of this bone (etc).
All bones rotate correctly apart from 2 bones that have been directly excluded from the initial bone.
Pictures:
Bone that rotates correctly:
Initial state of a bone that misbehaves:
Trying to rotate that bone:
Please note that more bones are being excluded from the problematic ones, that rotate just fine!
Thanks in advance for any replies!