CheckArgs.checkRange becomes generic
ReferenceFileTest further scalafication