Improved DbDto result type-checking.

All u/i tests pass.