core: tweaking promise duck-typing check
contrib: tweaking thenable duck-typing checks