Clone the original definition before destructing it.

This way users can use Machine.extend() without any side-effects.