Fix RestAdapter->flattening parameters