Applied the optimisations to the join(Iterator, x) methods that Stepan Koltsov included in his patch for #LANG-266.