Fixed bug when using all() or count() with no key params.