Fixed possible segfault when enforcing optional numeric argument types