Since length, nchar, nlevels and limit have (almost) same format,
guess.l(len, type = c("length", "nchar", "nlevels", "limit"),
input.name = NULL, limit.class = c("numeric", "integer"))
length field value, either a number or a named list
type of length-like field
input name
input class to perform limit-specific checks