Updated all ToolModes

The types used for tool modes/roi types is all over the place. Sometimes it is a 2-byte short, sometimes a 4-byte int and even a 4/8 architecture dependent long in some instances. This patch defines it as a ToolMode enum.