fixes #118

- hacking attributes/skills/traits could case an edge case when
calculating roles. basically now it will try to perform the same role
calculations, but if there's a failure it will fall back to another
method. a little clunky, but this should be a very rare scenario.
re-apply 0660a79
update dfhack lua script for offset export
Merge branch 'DF2014' of https://github.com/fricy/Dwarf-Therapist into DF2014

* 'DF2014' of https://github.com/fricy/Dwarf-Therapist:
  osx layouts?
  fix osx layouts
  40.07-40.09 osx mem layouts, correct typo.
fix #129
New checksums generated by v24.0. df40.07 and 40.08 didn't change.