use musl memcpy instead of out handwritten js one
simplify test_lifetime
make stub memcpy more functional, useful in some tests