Elgg/Elgg — pull request #6533 by hypeJunction (2014-02-19 08:00:11+00:00)
Title: Notifications: improve performance and cast boolean values

This makes sure we don't encounter type mismatch given notifications settings are stored as metadata.
Improves performance by constraining elgg_get_metadata(), and uses create_metadata to avoid getting the entity.
Adds regression tests.