Fix type check in RC binary cursor for varbinary fields
Fix failing unit test