Fix automation engine to honor the data type.

@lfu 
Do we only support array of strings or integers too. I just want to check that all datatypes that we support in the Method Params are supported. If there aren't array of integers this looks fine.
Can you also fix the rubocop errors.