improved clone helper

unfortunately, implementing a generic clone function is a rabbit hole -
since we only wanna copy the tid cache (i.e. an object of objects with
known field types), this should suffice