mds-kbdc: support arrays

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: fix let without array

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: fix array elements: allow functions

Signed-off-by: Mattias Andrée <maandree@operamail.com>