Fixed parsing booleans from 0/1, fixed #23.