Enforced typedefs in samples and tests