Fix casting Value->Barrier
Fix typo in setting pointer size.