Improved parser to read 0.0 as "False" for boolean input