handle resources in jlf_var_export_{cli|html}()