Fix bugs exposed by fuzz testing in YottaDB r2.00
Final Release Note
Description
Just like #964 (closed) was a placeholder issue in YottaDB r1.38 for various fixes to issues found during fuzz testing, this new issue serves the same purpose for YottaDB r1.40.