Fixed bug in template instantiation for coarseColor in ApplyCoarse.