Since these other writers take `ol.expr.Expression`, I think it would be clearer here to assert that `fid` is `ol.expr.Literal` and then call `fid.getValue()`.