The problem with the absolute yes/no, true/false dichotomy is it's easy to beat with a properly phrased hypothetical question instead of the actual question. You don't even need to know if the answer/answerer is lying or telling the truth.
Question #1:
"If I were asking you right now if Box 1 had the treasure would you answer yes?"
Case 1 - Treasure in Box 1, answer is truth:
He answers yes to this question, because if you were really asking if the treasure is on box 1, he'd answer yes.
Case 2 - Treasure in Box 1, answer is lie
He answers yes to this questions, because if you were really asking if the treasure is on box 1, he'd answer no.
In either of these cases, you know the treasure is in Box 1, and you are done.
Case 3 - Treasure not in box 1, answer is true
He answers no to this question, because if you were really asking if the treasure is on box 1, he'd answer no.
Case 4 - Treasure not in box 1, answer is a lie
He answers no to this question, because if you were really asking if the treasure is on box 1, he'd answer yes.
In either of these cases, you know the treasure is not in Box 1. In this case, you repeat the same question for Box 2. Yes will mean the treasure is in box 2, and no will mean box 3.