verify arguments to serries / parallel functions

Fixes #4