- fixed issues with inline templated code wich would have cause multiple versions of our class instances
- fixed #if DEBUG macros to _DEBUG
- reduced scope of friend declarations in Storage Classes (by adding the type restriction)
- added some macros to help with type declarations (and tested them)