Changed wrapping order; completed implementation for URIs and string@lc literals.