storage/format :  create a new size function

get_params used to return both the size and an allocated structure

the new param allows to get the size separatly
format : type verification and fixups
storage : type verification and fixup