Force apps flag to be boolean in config API

ref #3969

- it shouldn't be possible to set keys via this flag
Merge pull request #3988 from ErisDS/app-flag

Force apps flag to be boolean in config API