Test ignoring arrays of functions.

Should catch jQuery's pre-1.8 behavior, and anyone silly enough to emulate it.
Fix #18: spurious failure for promises that are functions.
Close #17: test call order for handlers added inside handlers.