Reworked data packing, fixes bugs with float and double parameters.