Add support for Promise<> by having a general parameterized support.

I wasn't able to check the results of the tests, I mean, I know they are failing but I have no idea why.