Fix non-exhaustive patterns. Closes #2.