MultiIndex now compiles again

Added JSON/YAML serialization.
Other minor fixes.