Fix assorted compiler warnings re tick count and has key len types.