Dart documentation URL fixes.

Improves library name derivation to be based on dart URI and adds proper tests based on resolved elements.