add writeResources() types `bool` and `integer`

Currently `writeResources()` value type is String only.

Add Integer and Boolean :)