Added case StatementRef for conversion from jObject to StatementBase