ID detection and compile error output

- Add missing Element type error callback for compiler
- Add initial implementation of a line context to token
- Fix ID detection