Bugfix

Fixed sanity bugs with range check and and unit check for
hysteria.validate()