Men deprived of due process without test to weigh whether their out-of-state convictions would require registration in NJ, court finds.