Fixed issue with accessing elements of a list with Integer class instead of int using the val() method of JsonPathElement