Check whether this node is valid as a script on its own.
Declared in <script/miniscript.h>
<script/miniscript.h>
bool IsValidTopLevel() const;
True if this node is valid and of base type B.