Fixed to_boolean and added a few host methods