copy & deepcopy added; extend now modifying first argument inplace.