Partial rewrite of compiler structure.
Improve object definition parsing.