Added persistent atomic value class
Added ensure to error cases of persistent atomic value