fix clone issues if the first param was not an object and deep clone array