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.
Don't think this is doing what you think it is. `jobj["objectType"]` won't exist.