Use `CheckForError` more frequently, just like in DSS Python, to avoid frequent errors. The new `Error_Get_NumberPtr` should be used to avoid unnecessary calls to `Error_Get_Number`.