perf(notification): improve handling of notification settings

Reduces overhead for getting notifications settings by constraining
metadata getter options. Casts notification setting values as boolean
before setting and after getting notification method's metadata values.
Adds regression tests.

Refs #6533