Added support for Arrays in all functions with a variable number of
params.

Change-Id: I30bfe9cd5fee785cf65a4d2477d8340d64616e00