Scope printing now uses type instead of struct.
Fixed several bugs in path.
Dereferencing a const ref pointer now works.