Fix crashes in StackString; validate_arguments return value