fixed typeOf result when invoke with dom element on modern browsers
made lib.contains return boolean always, not number
improved coverage for lib