Add support for getting types in string mode

This makes it possible to determine whether an
argument was passed as a string or as a path
when implementing helpers in string mode.