Converted constants into defines in twig-calling code.
Remove hidden properties from unit (array values crash twig).