PromiseProxy prefers Promise.cast over resolve, this makes it work corre...

...ctly with promise inheritance.