preserve int and float type values
Before, all numerical values were cast as floats, but this caused an issue in the filewriter, which expected to read a cached value as an int (used for slicing).
This should hopefully preserve the types.
Before, all numerical values were cast as floats, but this caused an issue in the filewriter, which expected to read a cached value as an int (used for slicing).
This should hopefully preserve the types.