reduce overhead of checking abilities
Merge pull request #1072 from loomio/perf-abilities

[CR done] reduce overhead of checking abilities