SES-1891 patch supplied by Andreas Schwarte. BTree unit tests and native
store integration/compliance tests all greenline.
Merged in ses-1891 (pull request #176)

SES-1891 patch supplied by Andreas Schwarte.