enhance cobalt.storage.setItem to support all type if specified

even for type that dont need any transformation before storing