Multiple changes

- Added new forward declarations.
- Minor changes in error info binding queries.