feat(allocator): connect `Vec2` module and make it compile (#9647)
This PR aims to connect the Vec2 with the whole program and make it compile and pass the CI. Since the diff is hard to understand, we may need to read the commit one by one to understand the changes.