Fix incorrect use of Array.slice() when producing derived key from concatenated key blocks