Only load swig if not already avaiable, fix event selectors, add length and indexOf to collections