Remove writeln from unittest
Refactor: int/uint -> size_t, add module stmt
Add one comment
Optimize for most frequent case

Most frequent case is ofc a uri where there is a regname and no
userinfo.
Add comment for toString()
Tweak toString(), add tests for it