ENH speed up BernoulliNB's predictions

Fixes #2240 by optimizing the current hack. Does not solve the more
general coef issue.