[good] handling of size_t vs integral + testcase