fix store serialise and unserialize with native php functions

Allow using serialize and unserialize php functions on stores.