change Object:clone function

now support (Object:clone {:type 'type}) …
write attributes after Object:clone