refactor(Properties/Figure): replace TreeMap with a stack-based enum map

Closes #12
Merge pull request #18 from japaric/no-treemap

refactor(Properties/Figure): replace TreeMap with a stack-based enum map