fix dto.entries repetition errors by improving the api for access to internal fields

not as clean as it could be, but quick and safe, as this is needed in production systems
Commented out code deserves either being deleted, or a comment added to say why it would be useful / what it means.