templates: common typedef(s) moved to common-template-typedefs.h

fixes #317

Signed-off-by: Budai Laszlo <Laszlo.Budai@balabit.com>