Fix arrayJoin for IE6&7 and add tests