Deep extend and clone objects