Add argument validation for origin/region/pitch; disallow zero-sized regions