Merge pull request #45 from eparis/use-type

Use Type() instead of internal .(*stringValue)