Define isatom for use instead of fragile isinstance.
Add subtree mutation.