Added code to ensure that bones have their flag set properly, even if they are not so in the original NIF file.