Fixes #23 containsOnlyOnce assertion for group (array/iterable)
Add javadoc on API and improve error message