Add types to LSSerializer.