CMS-4070 Improve handling of value types in Typescript

Quick fix for tag suggesting. This should be replaced by a proper suggest-function when available