Fixed errors in HashToRange

Found a problem with casting FieldElement returned by the tatepaiting
classes compute method to BigInt