Fixed a bug in localquery and finished testing the new features in OGRe