Squashing Bug #3 and #4

Keys are now checked for duplicates, which kills bug #4. For bug #3 we
are ignoring anything in the global that has not finished wrapping
itself.