Undelete_value for boolean

And some minor corrections, will be good to commit