I may be hitting a corner case in the KIM api when I am trying to read the free parameters of a mode. If the parameter is a scalar, then KIM_API_get_rank returns 0 as expected. I would also expect KIM_API_get_size to return 1, as that is the size of a scalar. Instead, it looks like it sometimes returns garbage (I just got the value 4607182418800017409). Is it possible that this API function multiplies the dimensions of the shape, but returns an uninitialized value when there are no dimensions to multiply? I guess that would be OK if documented in the API, although returning 1 would be more natural.