Fix bundle naming

Changes:
1. Make the flatten methods generate correct elements' name
2. Internal data structures
a. Bundle: LinkedHashMap(name & io pairs)
b. Vec: Vector(now Vec is immutable)
3. Remove legacy code

This passes the test and compiles referencechip