fixing sign-conversion warnings, part 12, minor refactor, eol cleanup. created aux::clamp and default_piece_priority refactor
wrap most instances of throw, and terminate on builds where exceptions are disabled