[util] Syntax fixes for clone() method