Refactor RuntimeLayer to accept IArrayPool.