Use const void * to aggregate containers and fix some warnings