Added Python compatible truth value testing (LogicValue) for Array, Double, Float and Int.