Introduced to_small_size_t function, with neat assert inside.