Update capability to_hash to include an array of arguments, rather than keeping them as keyed siblings to the return_type