Fix $clone()
function for File
class case.
#1168
Merged
$clone()
function for File
class case.
#1168