Better UnsupportedSQLException error messages

The non-QueryTreeNode constructor was passing bad arguments to the parent class, resulting in a malformed error message. Handle the optional detail in the exception itself.

Additionally, try to give more information in the error triggering this. Slightly unwieldy, as it is a very specific circumstance attempting to be described, but hopefully better overall.