cluda/tempalloc: if suitable size not found, setting the index to the end of size array, not the beginning
cluda/tempalloc: fixed typo in pack()