input_weights is incorrectly documented as a fixed length JSON array, but it is actually a JSON array of JSON objects - this commit changes input_weights to use RPCArg::Type::OBJ
The behavior of input_weights as an object exists as a functional test in wallet_fundrawtransaction.py.