Fix automation engine to honor the data type.

@lfu 
Can we add tests for the other data types that we support as method parameters like array