MODE-2111 Updated the observation manager to slightly increase the performance of event filtering, making sure that the non-expensive filters are executed first, before the expensive ones.

The PR is largely based on this commit https://github.com/barmintor/modeshape/commit/a24c29a0a438bdc09f3de51390aef6ed1bab6dc2.