XS.extend_2(): tests for null and undefined source, modify documentation