Fix off-by-two keyword argument check.

Which should fix issue #124 and also provide an additional check for odd number of keyword arguments.