TODO tests for Promise.anyof/allof type checking