Updated application generator template to support new generalised constant handling.