Fix inconsistencies in Memory Management
Merge branch 'master' of https://github.com/brick-lang/brick-lang