Added case SubStatement for conversion from jObject to StatementBase, checking for nested SubStatements