dict_init now takes a size argument