[FIX] Fixed some rather horrible bugs in the type system, also removed const. Everything is const by default now, use mutable to modify it