[lnst] ResultSerializer: add type attribute to serialized objects