Fix use of size in make_shared for arrays