Fix Xml serilization when using SetCrud and MapRepoFunction