Format decimals as floats for json dumps