Allow object-proxies as keys in a YAML file.

Right now `!pkl: <foo>` as a key in a YAML dictionary correctly replaces that as an `ObjectProxy` object but never actually instantiates that proxy object as the real object. This corrects that behaviour and adds a test for it.