Added a TernaryState utility, and added a sneaking requirement option to
CommandItems.