Added case StatementRef for conversion from jObject to StatementBase

If a statement which contains a statement reference as object is converted to a jObject and back, the statement reference is discarded.
Is this also the cause of the StatementTarget being null?