add :hash and :array to preference type

It's quite often to save hash or array data to database. Add :hash and :array type to preference can save a lot of works.