[scala] fix plain sf output for empty component
[ocaml] enable plain SF output