[settings] possibility to specify type for persistent settings