Convert objects to perl hash

Added a _to_hash function to QueryCaller to convert an Aws:: object to a perl hash