bugfix: itemsize was not respected, sizeof(float) was allways used