use instanceof to determine whether an object is a Q promise inside function Q

Considering modules using nested Q may have different versions or plugins (yup, such as my q-retry), I think it would be safer to determine whether the Q-promise-alike object is the instance of current Q promise constructor. So that the promise chain would be more reliable especially when promises are widely used in different modules.

This would bring a little bit performance impact, but it should be considered minor (actually only one more coerce for two modules and a single chain).