Fix a couple of bugs in large objects implementation.