[Input] added support for limiting the maximum number of values and groups at input

The defaults are: 100 values per field per group, and 30 groups allowing 3000 values in total.
This is a good default and will prevent DoS attacks by setting a large number of values.