Fix type issues in RegularStatementWrapperTest