Check whether this node is safe as a script on its own.
Declared in <script/miniscript.h>
<script/miniscript.h>
bool IsSane() const;
True if this node is a safe top-level script.