Added deep nesting/recursion test to the script test suite
Fixed segfault, special thanks to Ind [TO BE REBASED]