[OE-4647] Add support for constants to DataTemplate.