I've just wasted a few hours trying to get an idbag working, but it turns out that it it doesn't work for identity columns.

I'd noticed the comment in the documentation that 'native' columns are not supported.  What I hadn't realised what that 'identity' is a native column.

I wish they'd fix this.