better patch for to_boolean for decimal and binary number system (A. Kakuto)