Increased upperbound of nextInt to cover all cases.
Another bound issue for nextInt.
Made Cobra aware of bounded type parameters.