* saip: calculate the number of records for LF and CY * saip: rework file sizes for "half-defined" template files
* Allow update_binary function to write more than 255 bytes