Fix pretty-printing of OPAM files

Continue #998