A dispute between the Defense Department and old-line contractor Raytheon shows how tricky the rules are for cost accounting. In one recent case, Raytheon prevailed at the Armed Services Board of Contract Appeals.