BUG: previously, labels saved as uin8 were not integer, which produced errors on label-based registration. Now using uint32