detect incorrect stack lengths in RPN expressions