scale integer writes to value size, explicitly write data sizes in template