huge refactoring

MAJOR refactoring in memmanager. Optimized object handles from 5 words
to 4 and gc speed improved. Fixed float pow bug.