Require that keys in an object are unique

OK, I'll add this. We can easily remove if someone objects

/cc @gkellogg, @dlongley, @niklasl, @msporny