Fixed a couple of hive-related bugs

* Fixed incorrect order of arguments in ExternalHiveTask
* Using dictionary parameters broke with instance cache since dict is
not hashable