Object model creation with nested compile support