Fixes for Issue 130

I changed is.vector to is.atomic in the count function and added a test, so this is no longer a problem

https://github.com/hadley/plyr/issues/130