Workaround for strange Store / QueryResult behavior.            The query from a paging should add a "total" property to the result passed to QueryResult.            In an async store, this is a promise for an array. If `promiseFunction` delivers such a Promise,            it might have an added "total" property, which is also a Promise.            By wrapping the Promise returned by `promiseFunction` in another Promise with `then` above, we hide            that "total" property from the recipient.            The code below makes it visible again.
Workaround for strange Store / QueryResult behavior.
           The query from a paging should add a "total" property to the result passed to QueryResult.
           In an async store, this is a promise for an array. If `promiseFunction` delivers such a Promise,
           it might have an added "total" property, which is also a Promise.
           By wrapping the Promise returned by `promiseFunction` in another Promise with `then` above, we hide
           that "total" property from the recipient.
           The code below makes it visible again.

           Furthermore, a Promise returned by `then` is frozen, so we cannot add it to the object directly.
           With a delegate, we can do this.

git-svn-id: 7f36cf4b72bf643b5656b1be7c9ee06abfc308b2@7094 463e38ab-4f4e-0410-907a-65d2b3888964

peopleware/js-ppwcode-util-oddsAndEnds,peopleware/js-ppwcode-util-oddsAndEnds