Provide a template-aware version of ALIGNED_TYPE_ON for gcc 4.2 and other oldies