Fix for issue #3

Added fixes and relevant unit tests for #combinations(x, 0) and #permutations(x, 0).

Fixes #3