Add type check when calling PyPuzzle.get_distance_from_cvec().

This fixes #6.