I've been having a play with this and if I create a new value with BooleanCreateWithBool and point that at r_value then it crashes on ScannerAdvance... I can't really work out the problem.