Treat bools like integers in Algorithm::hash

Also end files with new lines