gsearch patch to support paging through results + parameter ambiguity fix (Java.lang.Integer != scala.Int)