fix type handling in wl_save_entities