scanner: allow element-type and enum on array args
This allows an element type and an enum to optionally be specified on array args in protocol xml.
If an enum is specified the element type is required and is subject to the same restrictions as a the type of a non-array argument with an enum specified.
Signed-off-by: Isaac Freund mail@isaacfreund.com