Code reorganization. Serialize does not compile dict to HAL anymore.
fix: added a special object to make hal object + code refactoring