Fix range scan and boundary conditions
Implementation for Exists method

Use the CountRange method to check if key exists
Return Error status for errors in indexer

- Wire protocol expects ERROR status for error responses
- Fix minor bug with duplicate err variable