Fix conflicting buffer size setting in template declaration vs definition