Assert correct usage of AndRestArguments fields
Assert correct usage of AndRestArguments fields

The special field andRestArguments is intended to be only used
as the last field of an object, catching all remaining keys.
Add a compile-time check to verify that it is used correctly.

Signed-off-by: Klaus Aehlig <4ce51de36d9068cd7db2eec1151e0f3f95419008@google.com>
Reviewed-by: Petr Pudlak <9d19625f8ee825a2c398462ed335cbcf98f79c32@google.com>

andir/ganeti,grnet/snf-ganeti,leshchevds/ganeti,ganeti/ganeti,apyrgio/ganeti,andir/ganeti,yiannist/ganeti,ganeti-github-testing/ganeti-test-1,ganeti/ganeti,grnet/snf-ganeti,yiannist/ganeti,mbakke/ganeti,mbakke/ganeti,yiannist/ganeti,leshchevds/ganeti,onponomarev/ganeti,onponomarev/ganeti,andir/ganeti,leshchevds/ganeti,bitemyapp/ganeti,mbakke/ganeti,bitemyapp/ganeti,apyrgio/ganeti,ganeti/ganeti,dimara/ganeti,dimara/ganeti,ganeti-github-testing/ganeti-test-1