Fixed some bugs and added a lookup to get the type of a Splunk command.