Fix unparsing bug in dmap resource. Add preview in s4pe.