This mirrors the implementations of reference slices into arrays.
Remove additional libcore-like restrictions from liballoc, turns out the testing works ok if the tests are a part of liballoc itself.