Faster cloning

Improves upon #93.

Particularly, avoids an extra method call and avoids holding an extra tempfile reference.

@schwern, what do you think?