Restrict context:statement to StatementRef

As discussed in the call. Conversion notes also updated.