Committing this as an individual patch, since the code is also substantially rejigged.
Created attachment 25796 [details]
Comment on attachment 25796 [details]
> 7 The rewrite also looks like a small (<1%) performance progression.
Should mention what test you ran.
> + // Check that bot are immediates, if so check if they're equal
Transmitting file data ....
Committed revision 39053.