fix take for primitive lists