python/ext/py-phasevoc.c: add input size checks