Fixes #2788 Correctly declare the return type of promise.filter and promise.map
Merge pull request #2796 from spadgos/bluebird-map-filter

Correctly declare the return type of promise.filter and promise.map